﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication3
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string name = Request.Form["TextBox1"];
            string password = Request.Form["TextBox2"];

            Response.Write($"Post :<h1>欢迎你，{name}，你的密码为{password}</h1>");


            string name2 = Request.QueryString["text"];
            string password2 = Request.QueryString["text2"];
            Response.Write($"Get :<h1>欢迎你，{name2}，你的密码为{password2}</h1>");
        }

    }
}